<template>
  <div class="recommend-item">
    <div class="recommend-img-wrapper">
      <img :src="data.img" alt="" />
    </div>
    <div class="recommend-info">
      <div class="recommend-title">
        {{ data.desc }}
      </div>
      <div class="recommend-price-box">
        <div class="recommend-sign">￥</div>
        <div class="recommend-price">{{ data.mon }}</div>
        <div class="recommend-payed">{{ data.peo }}人已购买</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: Object,
  },
};
</script>

<style scoped>
.recommend-item {
  width: 364px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  flex-shrink: 0;
  background: #fff;
  margin-top: 9px;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 4.5px;
  margin-right: 4.5px;
  margin-bottom: 20px;
}
.recommend-info {
  padding: 20px;
}
.recommend-title {
  font-size: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.recommend-sign {
  display: inline-block;
  color: #ff5500;
  font-size: 11px;
}
.recommend-price {
  display: inline-block;
  font-size: 14px;
  line-height: 16.000000000000004px;
  color: #ff5500;
}
.recommend-payed {
  display: inline-block;
  font-size: 11px;
  color: #999999;
  margin-left: 15px;
  margin-top: 2.0000000000000004px;
}
</style>